









def count(str):
 a=0
 k=0
 c=0
 m=0
 for i in str:
     if i.isdigit()==1:
         a+=1
     if i.isalpha()==1:
          k+=1
     if i ==' ' :
        c +=1
     if   i .isdigit()==0 and i.isalpha()==0 and i !=' ':
        m+=1
 return(a,k,c,m)


if not count(''):
    print('测试成功')
if count('12abAB [$') == (2,4,1,2):
    print('测试成功')
else:
    print('测试失败')